package LinkedList;

public class Text {
    public static void main(String[] args) {
        SingLinkedList list = new SingLinkedList();
        list.addLast(1);
        list.addLast(2);
        list.addLast(3);
        list.addLast(4);
        list.addLast(4);
        list.addLast(4);
        list.display();
        System.out.println("============");
        list.addFirst(9);
        list.addFirst(8);
        list.addFirst(7);
        list.display();
        System.out.println("============");
        list.add(5,99);
        list.add(6,100);
        list.display();
        System.out.println(list.size());
        list.remove(4);
        list.display();
        list.clear();
        list.display();

    }
}
